package com.lucky.xyt.modular.system.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lyb123
 * @since 2018-04-19
 */
@TableName("u_order")
public class Order extends Model<Order> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("order_id")
    private String orderId;
    /**
     * 订单号
     */
    @TableField("order_num")
    private String orderNum;
    /**
     * 发货人id
     */
    @TableField("consigner_id")
    private String consignerId;
    /**
     * 发货人名称
     */
    private String consigner;
    /**
     * 发货人地址
     */
    @TableField("consigner_address")
    private String consignerAddress;
    /**
     * 收货人id
     */
    @TableField("consignee_id")
    private String consigneeId;
    /**
     * 收货人名称
     */
    private String consignee;
    /**
     * 收货人地址
     */
    @TableField("consignee_address")
    private String consigneeAddress;
    /**
     * 是否提货
     */
    @TableField("if_pickup")
    private Integer ifPickup;
    /**
     * 是否送货
     */
    @TableField("if_delivery")
    private Integer ifDelivery;
    /**
     * 货物名称
     */
    private String cargo;
    /**
     * 重量
     */
    private Float weight;
    /**
     * 数量
     */
    private Integer number;
    /**
     * 体积
     */
    private Float volume;
    @TableField("company_id")
    private String companyId;


    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public String getConsignerId() {
        return consignerId;
    }

    public void setConsignerId(String consignerId) {
        this.consignerId = consignerId;
    }

    public String getConsigner() {
        return consigner;
    }

    public void setConsigner(String consigner) {
        this.consigner = consigner;
    }

    public String getConsignerAddress() {
        return consignerAddress;
    }

    public void setConsignerAddress(String consignerAddress) {
        this.consignerAddress = consignerAddress;
    }

    public String getConsigneeId() {
        return consigneeId;
    }

    public void setConsigneeId(String consigneeId) {
        this.consigneeId = consigneeId;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public String getConsigneeAddress() {
        return consigneeAddress;
    }

    public void setConsigneeAddress(String consigneeAddress) {
        this.consigneeAddress = consigneeAddress;
    }

    public Integer getIfPickup() {
        return ifPickup;
    }

    public void setIfPickup(Integer ifPickup) {
        this.ifPickup = ifPickup;
    }

    public Integer getIfDelivery() {
        return ifDelivery;
    }

    public void setIfDelivery(Integer ifDelivery) {
        this.ifDelivery = ifDelivery;
    }

    public String getCargo() {
        return cargo;
    }

    public void setCargo(String cargo) {
        this.cargo = cargo;
    }

    public Float getWeight() {
        return weight;
    }

    public void setWeight(Float weight) {
        this.weight = weight;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Float getVolume() {
        return volume;
    }

    public void setVolume(Float volume) {
        this.volume = volume;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.orderId;
    }

    @Override
    public String toString() {
        return "Order{" +
        "orderId=" + orderId +
        ", orderNum=" + orderNum +
        ", consignerId=" + consignerId +
        ", consigner=" + consigner +
        ", consignerAddress=" + consignerAddress +
        ", consigneeId=" + consigneeId +
        ", consignee=" + consignee +
        ", consigneeAddress=" + consigneeAddress +
        ", ifPickup=" + ifPickup +
        ", ifDelivery=" + ifDelivery +
        ", cargo=" + cargo +
        ", weight=" + weight +
        ", number=" + number +
        ", volume=" + volume +
        ", companyId=" + companyId +
        "}";
    }
}
